package nia.chapter4;

import java.io.IOException;

public class PlainNIOServerRun {
    //引导
    public static void main(String[] args) throws IOException {
        if (args.length != 1) {
            System.err.println("Usage:  <port>");
            return;
        }
        int port = Integer.parseInt(args[0]);
        PlainNIOServer pnioServe = new PlainNIOServer();
        pnioServe.serve(port);
    }
}
